<?php die;?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>miceCMS,觅策企业网站管理系统</title>
<link href="css/default.css" rel="stylesheet" type="text/css">
<link href="css/table.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/table.js"></script>
<script type="text/javascript" src="js/selectall.js"></script>
</head>

<body>
<table width="99%" align="center" border="0" cellpadding="0" cellspacing="0">
  <tr align="center">
	<td height="5"></td>
  </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<form action="<!--{$index}-->" method="post">
	<tr > 
		<td bgcolor="#F9F9F9" height="30" valign='middle'>
			&nbsp;&nbsp;<select name='view' id='view'>
									<option value='2' <!--{if $view==2}-->selected<!--{/if}-->>全部</option>
									<option value='1' <!--{if $view==1}-->selected<!--{/if}-->>已查看</option>		
									<option value='0' <!--{if $view==0}-->selected<!--{/if}-->>未查看</option>		
							  </select>&nbsp;关键字&nbsp;<input name='keywords' id='keywords' type="text" size="20" value="<!--{$keywords}-->" onblur="if(this.value=='') this.value='标题或正文中的部分文字';" onfocus="if(this.value=='标题或正文中的部分文字') this.value='';">&nbsp;每页显示条数&nbsp;<select name='pages' id='pages'>
								<option value='10' <!--{if 10==$pages}-->selected<!--{/if}-->>10</option>
								<option value='20' <!--{if 20==$pages or 0>=$pages}-->selected<!--{/if}-->>20</option>
								<option value='30' <!--{if 30==$pages}-->selected<!--{/if}-->>30</option>
								<option value='50' <!--{if 50==$pages}-->selected<!--{/if}-->>50</option>
								<option value='100' <!--{if 100==$pages}-->selected<!--{/if}-->>10</option>	
							  </select>&nbsp;<select name='orders' id='orders'>
									<option value='cd' <!--{if $orders eq "cd"}-->selected<!--{/if}-->>撰写时间降序</option>		
									<option value='ca' <!--{if $orders eq "ca"}-->selected<!--{/if}-->>撰写时间升序</option>		
							  </select>&nbsp;&nbsp;<input type="submit" value="查 找">
		</td>
	</tr>
	</form>
</table>
<table width="99%" align="center" border="0" cellpadding="0" cellspacing="0">
  <tr align="center">
	<td height="5"></td>
  </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#BEBEBE" onmouseover="changeto()"  onmouseout="changeback()">
  <form action="<!--{$delete}-->" method="post" name="miceform" id="miceform">
  <tr align="center">
	<td width="3%" height="24" background="imgs/right-title-bg.gif"></td>
    <td width="3%" height="24" background="imgs/right-title-bg.gif"></td>
    <td width="42%" height="24" background="imgs/right-title-bg.gif">标题</td>
	<td width="14%" height="24" background="imgs/right-title-bg.gif">状态</td>
	<td width="12%" height="24" background="imgs/right-title-bg.gif">订购人</td>
    <td width="14%" height="24" background="imgs/right-title-bg.gif">撰写时间</td>
    <td width="12%" height="24" background="imgs/right-title-bg.gif">操作</td>
  </tr>
  <!--{foreach from=$results item=rs name=counter}-->
  <tr align="center">
	<td width="3%" class="tablecontent"><!--{$smarty.foreach.counter.iteration}--></td>
    <td width="3%" class="tablecontent"><input name="checkbox[<!--{$rs->getFormId()}-->]" id="checkbox[<!--{$rs->getFormId()}-->]" type="checkbox" value="<!--{$rs->getFormId()}-->" /></td>
    <td width="42%" class="tablecontent"><div align="left">&nbsp;&nbsp;<!--{$rs->getTitle()}--></div></td>
	<td width="14%" class="tablecontent"><!--{if 0==$rs->getIsview()}-->未查看<!--{else}-->已查看<!--{/if}--></td>
	<td width="12%" class="tablecontent"><!--{$rs->getName()}--></td>
	<td width="14%" class="tablecontent"><!--{'micefun'|Num2Time:$rs->getCreatedat()}--></td>
    <td width="12%" class="tablecontent"><a href="<!--{$edit}--><!--{$rs->getFormId()}-->">详细</a>|<a href="<!--{$delete}--><!--{$rs->getFormId()}-->" onclick="JavaScript:return confirm('确定删除吗?')">删除</a></td>
  </tr>
  <!--{/foreach}-->
</table>
<table width="99%" align="center" border="0" cellpadding="0" cellspacing="0">
  <tr align="center">
	<td height="5"></td>
  </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<tr > 
		<td bgcolor="#F9F9F9" height="30" valign='middle'>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr > 
					<td bgcolor="#F9F9F9" height="30" valign='middle' width='50%'>
						&nbsp;&nbsp;<input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox'>全选&nbsp;<input type="submit" value="删除[D]" accesskey="d"/>
					</td>
					<td bgcolor="#F9F9F9" height="30" valign='middle' align='right' width='50%'>
						<!--{$pager}-->&nbsp;&nbsp;
					</td>
				</tr>
			</table>
		</td>
	</tr>
	</form>
</table>
<br>
</body>
</html>


